<template>
  <h3>事件传参</h3>
  <p v-for="(item, index) of names" :key="index" @click="getNameHandler(item, $event)">{{ item }}</p>
</template>
<script>
export default {
  data() {
    return {
      names: ['iwen', 'im', 'frank']
    }
  },
  methods: {
    // Event对象
    getNameHandler(name, event) {
      console.log(name);
      console.log(event);
      window.alert(name)
    }
  }
}
</script>